﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ESI_TBConfigDetail.aspx.cs" Inherits="Task.ESI_TBConfigDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
   <div>
        <table width="100%">
            <tr>
                <td>
                    <b>基本信息</b>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    流程名称
                </td>
                <td>
                    <asp:TextBox ID="txtProcessName" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    步骤名称
                </td>
                <td>
                    <asp:DropDownList ID="ddlStepName" runat="server" Width="200" 
                        AutoPostBack="True" onselectedindexchanged="ddlStepName_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    表名
                </td>
                <td>
                    <asp:DropDownList ID="ddlTableName" runat="server" Width="200" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlTableName_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                    是否子表
                </td>
                <td>
                    <asp:CheckBox ID="cbxIsSubTable" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>映射关系</b>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td valign="top">
                    列名
                </td>
                <td>
                    <asp:ListBox ID="ddlColumnName" runat="server" Width="200px" Height="200px"></asp:ListBox>
                </td>
                <td valign="top">
                    电子表格变量
                </td>
                <td>
                    <asp:ListBox ID="ddlSSLVarName" runat="server" Width="200" Height="200px"></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align: center">
                    <asp:Button ID="btnMapping" runat="server" Text="建立映射" 
                        onclick="btnMapping_Click" />
                </td>
            </tr>
            <tr id="trMapped" runat="server" visible="false">
                <td>
                    <b>已映射的关系</b>
                </td>
                <td>
                    <asp:Button ID="btnMappingDelete" runat="server" Text="删除已映射的关系" 
                        onclick="btnMappingDelete_Click"  />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr  id="trMappedGrid" runat="server" visible="false">
                <td colspan="4">
                    <table class="listTable">
                        <tr  class="bg">
                            <th>
                            </th>
                            <th>
                                表名
                            </th>
                            <th>
                                列名
                            </th>
                            <th>
                                电子表格变量
                            </th>
                             <th>
                                是否子表
                            </th>
                        </tr>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chk" runat="server" />
                                        <asp:TextBox ID="txtId" Visible="false" runat="server" Text='<%#Eval("Id")%>'> </asp:TextBox>
                                    </td>
                                    <td>
                                        <%#Eval("TableName")%>
                                    </td>
                                    <td>
                                        <%#Eval("ColumnName")%>
                                    </td>
                                    <td>
                                        <%#Eval("VarName")%>
                                    </td>
                                    <td>
                                        <%#Eval("Is_SubTable")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="返回" OnClick="btnCancel_Click" />
    </div>
    <asp:HiddenField id="hidStepName" runat="server"/>
    </form>
</body>
</html>
